<ion-header>
    <ion-toolbar color="primary">
        <ion-buttons slot="start">
            <ion-back-button></ion-back-button>
        </ion-buttons>
        <ion-title>金融顾问详情</ion-title>
    </ion-toolbar>
</ion-header>

<ion-content *ngIf="item">
    <ion-card>
        <ion-card-header>
            <ion-card-subtitle class="cardTitle">{{item.cname}}</ion-card-subtitle>
        </ion-card-header>
        <ion-card-content>
            <div class='details'>
                <ion-avatar class="img-avatar">
                    <img src="{{curl}}">
                </ion-avatar>
            </div>
            <div class='details'>{{item.cphone}}<br/>{{item.cemail}}</div>
            <div style="text-align: right;" *ngIf="iusertype == '3'">
                <ion-button (click)='presentAlertConfirm()'>与我联系</ion-button>
            </div>
        </ion-card-content>
    </ion-card>
    <ion-card>
        <ion-card-header>
            <ion-card-subtitle class="cardTitle">{{item.cbank}}</ion-card-subtitle>
        </ion-card-header>
        <ion-card-content>
            <div class='details' style="width:50%">
                <img src="assets/image/bank_service.png">
            </div>
            <div style="text-align: right;">
                <ion-button (click)='goToDetails([item.ibank])'>进入金融机构</ion-button>
            </div>
        </ion-card-content>
    </ion-card>
    <ion-card>
        <ion-card-header>
            <ion-card-subtitle class="cardTitle">服务企业</ion-card-subtitle>
            <a class="more" (click)="goToMore(1)">更多></a>
        </ion-card-header>
        <ion-card-content>
            <ion-grid>
                <ion-row>
                    <ion-col *ngFor="let c of connectlist1;let i=index">
                        <ion-avatar>
                            <img src={{c.ccpmpanypic}}>
                        </ion-avatar>
                        <div>{{c.cshortname}}</div>
                    </ion-col>

                </ion-row>
            </ion-grid>
        </ion-card-content>
    </ion-card>
    <ion-card>
        <ion-card-header>
            <ion-card-subtitle class="cardTitle">正在对接的企业</ion-card-subtitle>
            <a class="more" (click)="goToMore(2)">更多></a>
        </ion-card-header>
        <ion-card-content>
            <ion-grid>
                <ion-row>
                    <ion-col *ngFor="let c of connectlist2;let i=index">
                        <ion-avatar>
                            <img src={{c.ccpmpanypic}}>
                        </ion-avatar>
                        <div>{{c.cshortname}}</div>
                    </ion-col>

                </ion-row>
            </ion-grid>
        </ion-card-content>
    </ion-card>
    <ion-card>
        <ion-card-header>
            <ion-card-subtitle class="cardTitle">服务案例</ion-card-subtitle>
        </ion-card-header>
        <ion-card-content>
            <p>&nbsp;&nbsp;&nbsp;{{item.cservicecase}}</p>
        </ion-card-content>
    </ion-card>
</ion-content>